<template>
  <div class="copyright-box">
    <div class="title">
      <titles title="留言板" />
    </div>
    <comment :showpieceId="0" :projectId="projectId" />
    <commentList :total="false" :showpieceId="0" :projectId="projectId" @emitHeights="emitHeights" />
  </div>
</template>

<script setup lang="ts">
// @ts-nocheck
import commentList from '../components/commentList.vue';
import comment from '../components/comment.vue';
import { ref, computed, reactive } from 'vue';
import titles from '../components/title.vue';

import { useProjectStore } from '@/store';

const projectId = Number(localStorage.getItem('projectId'));

const store = useProjectStore();
const total = ref(0);
const emitHeights = (e: number) => {
  total.value = e;
};
</script>

<style lang="less" scoped>
.copyright-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1180px;
  min-width: 1180px;
  padding-bottom: 80px;
}
.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 80px;
}

.heard-textarea {
  margin-top: 50px;
}
.t-row {
  margin: 0;
}
.total-text {
  font-size: 18px;
  font-family: PingFangSC-Medium, PingFang SC;
  color: #33302b;
  line-height: 28px;
}
</style>
